﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.SMS.Data
{
    public class DataProviderFactory
    {
        public static IDataProvider CreateDataProvider(IConnectStringProvider configProvider)
        {
            return new sqlDataProvider(configProvider);
        }

        public static IEmailDataAccess CreateEmailDataProvider(IConnectStringProvider configProvider)
        {
            return new sqlEmailDataAccess(configProvider);
        }

        public static IPushMessageProvider CreatePushMessageProvider(IConnectStringProvider configProvider)
        {
            return new sqlDataProvider(configProvider);
        }

        public static ICommonService CreateCommonService(IConnectStringProvider configProvider)
        {
            return new sqlCommonService(configProvider);
        }

        //public static ISendWebDataAccess CreateSendWebService(IConnectStringProvider configProvider)
        //{
        //    return new sqlWebSendDataAccess(configProvider);
        //}
  
    }
}
